import { createRouter, createWebHistory } from 'vue-router'
import StartPage from '../views/StartPage.vue'
import HomePage from '../views/HomePage.vue'
import AddEventTypePage from '../views/AddEventTypePage.vue'
import AddEventInfoPage from '../views/AddEventInfoPage.vue'
import EventDetailPage from '../views/EventDetailPage.vue'
import EventManagePage from '../views/EventManagePage.vue'
import SettingPage from '../views/SettingPage.vue'
import AnalysisPage from '../views/AnalysisPage.vue'
import OverviewPage from '../views/OverviewPage.vue'

const routes = [
  {
    path: '/',
    name: 'Start',
    component: StartPage
  },
  {
    path: '/home',
    name: 'Home',
    component: HomePage
  },
  {
    path: '/overview',
    name: 'Overview',
    component: OverviewPage
  },
  {
    path: '/add-event-type',
    name: 'AddEventType',
    component: AddEventTypePage
  },
  {
    path: '/add-event-info',
    name: 'AddEventInfo',
    component: AddEventInfoPage
  },
  {
    path: '/event-detail/:id',
    name: 'EventDetail',
    component: EventDetailPage
  },
  {
    path: '/event-manage',
    name: 'EventManage',
    component: EventManagePage
  },
  {
    path: '/analysis',
    name: 'Analysis',
    component: AnalysisPage
  },
  {
    path: '/setting',
    name: 'Setting',
    component: SettingPage
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router